/**
 * 
 */
package smallChanges.statements;

import java.io.Serializable;

import smallChanges.Tokenization.TokenSet;

/**
 * meta-information that marks up a range of tokens inside a statement.
 * 
 * @author jspacco
 *
 */
public class MetaInformationAnnotation extends MultiTokenCodeRange2D implements Serializable
{
    private String type;
    private Long statementID;
    
    public MetaInformationAnnotation(TokenSet tokenSet) {
        super(tokenSet);
    }
    
    public MetaInformationAnnotation(TokenSet tokenSet, String type) {
        super(tokenSet);
        setType(type);
    }
    
    /**
     * void constructor for Hibernate
     */
    public MetaInformationAnnotation() {
        super(null);
    }
    
    public String toString() {
        return getCoords() + " "+getType();
    }

    public String getType()
    {
        return type;
    }
    public void setType(String type)
    {
        this.type = type;
    }
    public Long getStatementID()
    {
        return statementID;
    }
    public void setStatementID(Long statementID)
    {
        this.statementID = statementID;
    }
}
